import java.util.Scanner;

public class test2 {
    public static void Print_Password(long a){
        Scanner sc = new Scanner(System.in);
        int b=3;
        while(true){
            long c=sc.nextLong();
            if(c==a){
                System.out.println("输入正确,登录成功！");
                return;
            } else {
                System.out.println("输出错误，你最多可以尝试三次");
                b--;
            }
            if(b==0){
                System.out.println("这已经是第三次了，程序退出！");
                return;
            }
        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long a= 123456;
        Print_Password(a);
    }
}
